<template>
    <button @click="fn">触发消息</button>
</template>
 
<script setup >
import { msg } from './components/index';
let str = '你好'
const fn = () => {
    msg({
        title: str,
    });
};
</script>